package com.dk.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author: A11181121050450
 * @date: 2020-04-20 14:51
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class BaseVo<T> {
    private String code="1";
    private String msg;
    private T result;

    public BaseVo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BaseVo(T result) {
        this.result = result;
    }
}
